import request from '@/utils/request'
 // 查询客户列表
 export function listCustomer(query) {
   return request({
     url: '/module/customer/list',
     method: 'get',
     params: query
   })
 }
 
 // 查询客户详细
 export function getCustomer(id) {
   return request({
     url: '/module/customer/' + id,
     method: 'get'
   })
 }
 
 // 新增客户
 export function addCustomer(data) {
   return request({
     url: '/module/customer',
     method: 'post',
     data: data
   })
 }
 
 // 修改客户
 export function updateCustomer(data) {
   return request({
     url: '/module/customer',
     method: 'put',
     data: data
   })
 }
 
 // 删除客户
 export function delCustomer(id) {
   return request({
     url: '/module/customer/' + id,
     method: 'delete'
   })
 }
